<?php

return array(
	'admin' => array(
	'Router_Route',
		array(
			'check' => '#^admin(/)?(?P<module>[^/]+/)?(?P<controller>[^/]+/)?(?P<action>[^/]+/)?#',
			'build' => 'admin/[module]/[controller]/[action]/*',
			'map' => '[module]@admin.[controller]:[action]',
			'defs' => array(
				'module' => 'core',
				'controller' => 'index',
				'action' => 'index',
			),
			'reqs' => array()
		)
	),
	'admin_general' => array(
		'Router_Route',
		 array(
			'check' => '#^admin(/)?(?P<controller>[^/]+/)?(?P<action>[^/]+/)?#',
			'build' => 'admin/[module]/[controller]/[action]/*',
			'map' => 'core@admin.[controller]:[action]',
			'defs' => array(
				'module' => 'core',
				'controller' => 'index',
				'action' => 'index',
			),
			'reqs' => array()
		)
	),
	'admin_extended' => array(
        'Router_Route',
         array(
            'check' => '#^admin(/)?(?P<controller>[^/]+/)?(?P<subcontroller>[^/]+/)?(?P<action>[^/]+/)?#',
            'build' => 'admin/[module]/[controller]/[subcontroller]/[action]/*',
            'map' => 'core@admin.[controller].[subcontroller]:[action]',
            'defs' => array(
                'module' => 'core',
                'controller' => 'index',
                'subcontroller' => 'index',
                'action' => 'index',
            ),
            'reqs' => array()
        )
    ),
	'home' => array(
		'Router_Route',
		array(
			'check' => '#^home/$#',
			'build' => 'home',
			'map' => 'core@index:index',
			'defs' => array(),
			'reqs' => array()
		)
	),
	'default' => array(
		'Router_Route',
		array(
			'check' => '#^(?P<module>[^/]+/)?(?P<controller>[^/]+/)?(?P<action>[^/]+/)?#',
			'build' => '[module]/[controller]/[action]/*',
			'map' => '[module]@[controller]:[action]',
			'defs' => array(
				'module' => 'core',
				'controller' => 'index',
				'action' => 'index',
			),
			'reqs' => array()
		)
	),
	'default_extended' => array(
        'Router_Route',
        array(
            'check' => '#^(?P<module>[^/]+/)?(?P<controller>[^/]+/)?(?P<subcontroller>[^/]+/)?(?P<action>[^/]+/)?#',
            'build' => '[module]/[controller]/[subcontroller]/[action]/*',
            'map' => '[module]@[controller].[subcontroller]:[action]',
            'defs' => array(
                'module' => 'core',
                'controller' => 'index',
                'subcontroller' => 'index',
                'action' => 'index',
            ),
            'reqs' => array()
        )
    ),
);
